package org.simplesocket.simplenettymtbatis;

import lombok.Data;
import org.simplesocket.simplenettycore.context.SimpleNettyContext;
import org.simplesocket.simplenettymtbatis.datasource.Database;

@Data
public class SimpleNettyMybatisContext {
    
    private static final SimpleNettyMybatisContext simpleNettyMybatisContext = new SimpleNettyMybatisContext();
    
    private Database database;
    
    private SimpleNettyMybatisContext() {}
    
    public static void init(SimpleNettyContext simpleNettyContext, SimpleNettyMybatisConfig mybatisConfig){
        ContextHelper.init(simpleNettyContext,simpleNettyMybatisContext,mybatisConfig);
    }
    
}
